package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Travel;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * 游记持久层接口
 */
public interface TravelRepository extends MongoRepository<Travel,String> {


    List<Travel> findByDestId(String destId, PageRequest pageRequest);

    List<Travel> queryByDestName(String keyword);
}
